<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body style="padding:10px;">
<p>说明：
    <span>不允许直接调用Dao,只能通过接口的方式调用</span>
</p>
<br/>
<p>正例：</p>
<div style="margin:10px;padding:10px;border:1px solid #000000;white-space: pre-line;">
<br/>    /**
<br/>    * @author LiKun
<br/>    * @since 2019-10-18
<br/>    */
<br/>    @Service
<br/>    @Slf4j
<br/>    public class ReportInfoServiceImpl extends BaseServiceImpl&lt;ReportInfoDao, ReportInfo&gt; implements IReportInfoService {
<br/>
<br/>        /**
<br/>        */
<br/>        @Autowired
<br/>        private IReportDataSetService reportDataSetService;
<br/>
<br/>        public static void test(){
<br/>            reportDataSetService.list();
<br/>        }
<br/>
<br/>    }
</div>
<br/>
<p>反例：</p>
<div style="margin:10px;padding:10px;border:1px solid #000000;white-space: pre-line;">
<br/>    /**
<br/>    * @author LiKun
<br/>    * @since 2019-10-18
<br/>    */
<br/>    @Service
<br/>    @Slf4j
<br/>    public class ReportInfoServiceImpl extends BaseServiceImpl&lt;ReportInfoDao, ReportInfo&gt; implements IReportInfoService {
<br/>
<br/>        /**
<br/>        */
<br/>        @Autowired
<br/>        private IReportDataSetDao reportDataSetDao;
<br/>
<br/>        public static void test(){
<br/>            reportDataSetDao.list();
<br/>        }
<br/>
<br/>    }
</div>
</body>
</html>